﻿using Chloe.Annotations;
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace PrismORM.ViewModels
{
    [TableAttribute("Users")]
    public class NameMsgModel : BindableBase
    {
        [ColumnAttribute("Id", IsPrimaryKey = true)]
        public int Id { get; set; }

        private string _message;
        public string Message
        {
            get { return _message; }
            set { SetProperty(ref _message, value); }
        }

        private string _name;
        public string Name
        {
            get { return _name; }
            set { SetProperty(ref _name, value); }
        }

        public NameMsgModel()
        {
            Message = "Xiao Ming of Prism Module.";
            Name = "Xiao Ming";
        }

        public override string ToString()
        {
            return $"Id:{Id} Name:{Name} Msg:{Message}";
        }

    }

    [Table("NotiMsg")]
    public class NotiMsg
    {
        [Column("IdKey", IsPrimaryKey = true, Size = 50)]
        public string Key { get; set; }

        public string MsgValue { get; set; }

        public string Title { get; set; }

        public MessageBoxButton YesNoBtton { get; set; }

        public MessageBoxImage WarnQuestImage { get; set; }

        public override string ToString()
        {
            return $"IdKey:{Key} Msg:{MsgValue}";
        }
    }

}
